Skip to content

[Fix/144] wait_for_logs working for DockerCompose - #149

Merged
yakimka merged 4 commits into
testcontainers:masterfrom
singerjess:master
Mar 27, 2022
Merged

yakimka merged 4 commits into
testcontainers:masterfrom
singerjess:master

Conversation

@singerjess

@singerjess singerjess commented Jun 24, 2021 •

Copy link
Copy Markdown
Contributor

This PR adds the functionality of "wait_for_logs" for Compose containers (see this issue).

Fixed by adding method to get logs in the Generic container, similar to the one on the Compose container, then using it in the wait_for_logs method instead of going through the private attribute "_container".

* added logs for container
* updated docker compose for tests
* added test for container logs
@singerjess
singerjess marked this pull request as draft June 24, 2021 14:19
@singerjess
singerjess marked this pull request as ready for review June 28, 2021 14:34
@yakimka

yakimka commented Mar 26, 2022

Copy link
Copy Markdown
Contributor

@singerjess, can you update this PR? I want to merge it

@singerjess

Copy link
Copy Markdown
Contributor Author

@singerjess, can you update this PR? I want to merge it

Just Did! But I need someone to authorize the pipeline build

@codecov-commenter

codecov-commenter commented Mar 27, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #149 (7fe0a6b) into master (fc5f2df) will decrease coverage by 0.17%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
- Coverage   85.28%   85.10%   -0.18%     
==========================================
  Files          24       24              
  Lines         632      638       +6     
  Branches       59       60       +1     
==========================================
+ Hits          539      543       +4     
- Misses         75       76       +1     
- Partials       18       19       +1     
Impacted Files Coverage Δ
testcontainers/core/container.py 77.65% <50.00%> (-1.23%) ⬇️
testcontainers/core/waiting_utils.py 95.00% <100.00%> (+0.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc5f2df...7fe0a6b. Read the comment docs.

@yakimka
yakimka merged commit 3b8a1b5 into testcontainers:master Mar 27, 2022
@yakimka

yakimka commented Mar 27, 2022

Copy link
Copy Markdown
Contributor

@singerjess thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants